<?php

include_once("../function.php");
//print_r($_GET);die;//Array ( [user_id] => 3 )
extract($_GET);//$user_id
$user_id=trim($user_id);
if(!isset($_COOKIE["username"]))
{
	msg("尚未登录,请登录","./deng.php");exit;
}
$sql="delete from ts_cart where user_id='$user_id'";
//echo $sql;die;
$res=mysqli_query($link,$sql);
if($res)
{
	if(mysqli_affected_rows($link)>0)
	{
		header("location:./shopcar.php");
	}
}
?>